﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace WXY.Course.Model
{
    public class MenuInfo
    {
        public int? Code { get; set; }

        [Display(Name = "目录名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        [ByteLength(20, ErrorMessage = "{0}的最大长度为{1}")]
        public string Name { get; set; }

        public int Order { get; set; }

        [Display(Name = "链接地址")]
        [Required(ErrorMessage = "{0}不能为空")]
        [ByteLength(100, ErrorMessage = "{0}的最大长度为{1}")]
        public string Url { get; set; }

        public bool TargetBlank { get; set; }
    }
}
